package com.springboot.demo.mapper;

import com.springboot.demo.entity.TestUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

/**
 * @author wubc683
 * @desc
 * @date 2022-05-11 16:36
 */
public interface TestMapper {
    @Insert("insert into web_test(name) values(#{i})")
    void insertNum(int i);

    @Select("select id ,name,value from web_test where id = #{id}")
    TestUser get(Long id);

    @Insert("insert into web_test(name,value) values(#{name},#{value})")
    void save(TestUser testUser);
}
